package proxy.example;

import proxy.example.GiveGift;
import proxy.example.SchoolGirl;

/**
 * 追求者
 * @author Chen Guang
 * @date 2019/3/29 0029 下午 16:28
 */
public class Pursuit implements GiveGift {

    private SchoolGirl schoolGirl;

    public Pursuit(SchoolGirl schoolGirl) {
        this.schoolGirl = schoolGirl;
    }

    public Pursuit() {
    }

    @Override
    public void giveDolls() {
        System.out.println(schoolGirl.getName() + ":送你洋娃娃");
    }

    @Override
    public void giveFlowers() {
        System.out.println(schoolGirl.getName() + ":送你鲜花");
    }

    @Override
    public void giveChocolate() {
        System.out.println(schoolGirl.getName() + ":送你洋巧克力");
    }
}
